function handleExport(list, tHeader, filterVal, filename, multiHeader = [], merges = [], fileType = 'xlsx') {
  import('@/utils/Export2Excel').then(excel => {
    const data = formatJson(filterVal, list)
    excel.export_json_to_excel({
      multiHeader,
      header: tHeader,
      data,
      filename,
      merges,
      autoWidth: true,
      bookType: fileType
    })
  })
}
function formatJson(filterVal, jsonData) {
  return jsonData.map(v => filterVal.map(j => {
    return v[j]
  }))
}
export default handleExport
